import React from 'react';
import ReactDom from 'react-dom';
import Home from '../Home';
import {Route} from 'react-router-dom';
import {fmRoutes} from '../util';
import Routes from '../route/';
import { BrowserRouter } from 'react-router-dom';
import createStore from '../redux/createStore.js';
import {Provider} from 'react-redux';
const store = createStore(window.state);
Routes.map(i=>{console.log(i)});
const App = () => {
    return (
        <Provider store={store}>
        <BrowserRouter>
            {fmRoutes(Routes)}
        </BrowserRouter>
        </Provider>
    )
}

ReactDom.hydrate(<App />, document.getElementById("root"))
